package com.wrox.begspring;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.PrintWriter;

public class DateFileWriter implements ResultWriter{
	
  public DateFileWriter(){}
  
  public void showResult(String result){
	  File file=new File("output.txt");
	  try{
		  PrintWriter fwriter=new PrintWriter(new BufferedWriter(new FileWriter(file)));
		  fwriter.println(result);
		  fwriter.close();
	  }catch(Exception e){
		  e.printStackTrace();
	  }
  }
}
